app.service('z-codeImport-s', [
			'$rootScope',
			'$z-http',
			'ZModel',
			function($rootScope, $http, ZModel) {
				var service = {
						getTemplateUrl:function (success, fault) {
			                $http.get("codeImport/getCodeURL.do", {
			                    headers: {
			                        'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
			                    }
			                }).success(success).error(fault);
			            },
						importCode : function(data,success,fault) {
							$http.post("codeImport/importCode.do",data)
							.success(function(data) {
								success(data);
			  				}).error(function(data) {
		  						fault(data);
			  				});
						},
				};
				return service;
} ]);